package sixkey.utils;

/**
 * ClassName:ResponseCodeEnums
 * Package:sixkey.utils
 * Description
 *
 * @Author:@wenxueshi
 * @Create:2023/7/12 - 13:20
 * @Version:v1.0
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * 响应类型枚举类
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnums {

    SUCCESS(200, "success"),
    FAIL(500, "failed"),

    HTTP_STATUS_200(200, "ok"),
    HTTP_STATUS_400(400, "request error"),
    HTTP_STATUS_401(401, "no authentication"),
    HTTP_STATUS_403(403, "no authorities"),
    HTTP_STATUS_500(500, "server error");

    private final int code;
    private final String message;
}
